package com.kgc.store.remote;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.store.pojo.CostAdjustment;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface CostAdjustmentRemote {
    @RequestMapping("GetOne")
    @ResponseBody
    public ResponseMsg getOne(@RequestParam("code") String code);
    @RequestMapping("getPage")
    @ResponseBody
    public ResponseMsg getPage(@RequestBody Map<String, Object> map);
    @RequestMapping("add")
    @ResponseBody
    public ResponseMsg add(@RequestBody CostAdjustment costAdjustment);
    @RequestMapping("update")
    @ResponseBody
    public ResponseMsg update(@RequestBody CostAdjustment costAdjustment);
    @RequestMapping("del")
    @ResponseBody
    public ResponseMsg del(@RequestParam("code") String code);
    @RequestMapping("import")
    @ResponseBody
    public ResponseMsg importProChange(@RequestBody Map<String, Object> map);
    @RequestMapping("changePrice")
    @ResponseBody
    public ResponseMsg changePrice(@RequestBody CostAdjustment costAdjustment);
}
